<?php

class PlanoCurricularDisciplina extends AppModel {
	
	var $belongsTo = array('PlanoCurricular','Disciplina');
	
	//var $hasmany = array('Disciplina');
	
	var $validate = array(
	
        'disciplina_id' => array(
            'vazio' => array(
                'rule' => 'notEmpty',
                'required' => true,
                'message' => 'Disciplina deve ser informada!',
                'last' => true
			)
		),
    	'num_aulas' => array(
            'vazio' => array(
                'rule' => 'notEmpty',
                'required' => true,
                'message' => 'Número de aulas da disciplina deve ser informada!',
                'last' => true
			)
		)		
		
	);		

}